/**
 * 
 */
package com.wolfware.athsweb.manager.impl;

import java.util.List;

import com.wolfware.athsweb.domain.User;
import com.wolfware.athsweb.manager.UserManager;
import com.wolfware.athsweb.persistancy.dao.UserDAO;

/**
 * @author ChristianStrzadala
 *
 */
public class UserManagerImpl implements UserManager {

	private UserDAO userDAO;
	
	/**
	 * @param userDAO the userDAO to set
	 */
	public void setUserDAO(final UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	/**
	 * {@inheritDoc}
	 */
	public List<User> getRegisteredUsers() {
		List<User> userList = userDAO.getAllUsers();
		return userList;
	}

	/**
	 * {@inheritDoc}
	 */
	public void addUser(User user) {
		userDAO.saveUserEntry(user);
	}

}
